home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / gitrgrep < prev    next >
Encoding:
Text File  |  1996-06-06  |  694 b   |  23 lines

  1. #!/bin/sh
  2.  
  3. ###############################################################################
  4. ###                                        ###
  5. ###        GNU Interactive Tools 4.3.11 recursive grep script          ###
  6. ###        Copyright (C) 1994, 1996 Free Software Foundation, Inc.     ###
  7. ###            Written by Tudor Hulubei and Andrei Pitis.              ###
  8. ###                                        ###
  9. ###############################################################################
  10.  
  11. grep="grep"
  12. name=`basename "$0"`
  13.  
  14. # Start grep/egrep/fgrep depending on argv[0]
  15.  
  16. case $name in
  17. gitrgrep)    grep="grep";;
  18. gitregrep)    grep="egrep";;
  19. gitrfgrep)    grep="fgrep";;
  20. esac
  21.  
  22. find . -follow -type d -exec gitxgrep '{}' $grep "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" ';'
  23.